FROM centos
ENV FLASK_APP application.py
ENV FLASK_CONFIG production
WORKDIR /home/web
COPY web/requirements.txt requirements.txt
RUN yum install -y python38
RUN pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
COPY web/app app
COPY web/application.py web/config.py boot.sh ./
# runtime configuration
EXPOSE 5000
ENTRYPOINT ["./boot.sh"]